<!-- 导航URL -->
<div class="row wrapper border-bottom white-bg page-heading">
	<div class="col-md-12">
		<ol class="breadcrumb">
			<li><a>主页</a></li>
			<li><a>风控管理</a></li>
			<li class="active"><strong>规则设置</strong></li>
		</ol>
	</div>
</div>
<style>
	.textContect{
		float:left;
		padding:7px 5PX 0 5PX;
	}
	.inputContectMin{
		width:50px;
		float:left;
		text-align:center;
	}
</style>
<!-- 主要内容 -->
<div class="wrapper wrapper-content animated fadeIn" ng-app
	ng-controller="riskRulesSetCtrl">
	<form class="form-horizontal" id="form1">
			<div class="row">
				<div class="col-lg-12">
						<div class="panel-body ibox float-e-margins">
							<div class="ibox-content">
							
								<div class="form-group">
									<label class="col-sm-2 control-label">规则编号:</label>
									<div class="col-sm-2 checkbox" ng-bind="info.rulesNo"></div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">规则引擎:</label>
									<div class="col-sm-10" style="float:left">
										<span class="textContect" >针对刷卡业务,商户注册时间在</span>
										<input type="text" class="form-control inputContectMin" ng-model="values.regDay">
										<span class="textContect" >天以内,商户历史累计交易不同卡张数 < </span>
										<input type="text" class="form-control inputContectMin" ng-model="values.cardNumMin">
										<span class="textContect" >或累计交易不同卡张数 >= </span>
										<input type="text" class="form-control inputContectMin" ng-model="values.cardNumMax">
										<span class="textContect" >张 </span>

									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"></label>
									<div class="col-sm-10" style="float:left">
										<span class="textContect" >且交易成功率 < </span>
										<input type="text" class="form-control inputContectMin" ng-model="values.ratio">
										<span class="textContect" >%,且商户名下交易的银行卡已认证成功的张数 ≤ </span>
										<input type="text" class="form-control inputContectMin" ng-model="values.authNum">
										<span class="textContect" >张;交易失败且出现返回码为：{{values.confiscationCard}}（没收卡）、</span>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"></label>
									<div class="col-sm-10" style="float:left">
										<span class="textContect" >{{values.reportCard}}（挂失卡）、{{values.stolenCard}}（被窃卡），</span>
										<span style="float:left;"><input type="text" class="form-control" style="width:50px;" ng-model="values.dayNum"></span>
										<span class="textContect" >天内累计触发的卡张数为 >= </span>
										<span style="float:left;"><input type="text" class="form-control" style="width:50px;"ng-model="values.cardNum"></span>
										<span class="textContect" >张.</span>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">规则指令：</label>
									<div class="col-sm-2 checkbox" ng-bind="info.rulesInstruction | formatDropping:rulesInstructions"></div>
									<div class="col-sm-4">
										<button class="btn btn-new" type="button" ng-hide="info.rulesInstruction==2 || info.rulesInstruction==3  || info.rulesInstruction==5"  ng-click="modifyRulesInstruction(info.rulesNo,info.rulesInstruction)" style="width: 120px" id="btnSubmit">修改指令</button>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">处理措施：</label>
									<div class="col-sm-3">
										<input type="text" class="form-control"  ng-model="info.treatmentMeasures">
									</div>
								</div>
								
									<div ui-view="riskRulesSetCommon"></div>
								<div class="form-group">
									<label class="col-sm-2 control-label">备注：</label>
									<div class="col-sm-5">
										<textarea class="form-control" rows="5" ng-model="info.remark"></textarea>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"></label>
									<div class="col-lg-8">
										<button class="btn btn-primary btn-mr20" ng-disabled="submitting" type="button" ng-click="commit()">提交</button>
										<a class="btn btn-primary4" type="button"  ui-sref="risk.riskRulesMag">返回</a>
									</div>
								</div>
									
							</div>
					</div>
				</div>
			</div>
	</form>
	
		<!-- 模态框（Modal）修改状态 -->
	<div id="modifyRulesInstructionModal" class="modal fade form-horizontal" tabindex="-1" role="dialog">
	   <div class="modal-dialog" style="height:210px;width: 400px">
			<div class="modal-content" >
	         <div class="modal-header">
	            <button type="button" class="close" data-dismiss="modal">
	                  &times;
	            </button>
	            <h3 class="modal-title">修改指令</h3>
	         </div>
	         <div class="modal-body" style="height:150px;width: 400px">
	         	<form id="form4">
	         	    <div class="form-group">
						<label class="col-sm-4 control-label">当前指令为：</label>
							<div class="col-sm-6 checkbox" ng-bind="rulesInstruction | formatDropping:rulesInstructions"></div>
					</div>
	         		<div class="form-group">
						<label class="col-sm-4 control-label">修改指令为：</label>
						<div class="col-sm-6">
							<select class="form-control" ng-model="rulesInstructionSelcet" ng-options="x.value as x.text for x in rulesInstructionModals"/>
						</div>
						<input type="hidden" class="form-control" ng-model="rulesNo">
					</div>
	         	</form>
	        </div>  
	         <div class="modal-footer" style="height:60px;width: 400px">
	          	<button type="button" ng-click="modifyRulesInstructionCommit()" ng-disabled="submitting" class="btn btn-primary btn-mr20">确定</button>
	         	<button type="button" ng-click="modifyRulesInstructionColse()" ng-disabled="submitting" class="btn btn-primary11">关闭</button>
			 </div>
			
	      </div>
		</div>
	</div>
	
	
</div>